<?php
$ip = "139.9.37.31";
$user = "root";
$pwd = "l2sFEjJruJG3";
return array(
	'components' => array(
        'user'=>array(
            'class'  => 'CDbConnection',
            'connectionString' => "mysql:host={$ip};port=3306;dbname=user",
            'emulatePrepare' => true,
            'username' =>$user,
            'password' => $pwd,
            'charset' => 'utf8',
            'tablePrefix' => 'u_',
        ),
        //智能門鎖产品
        'znms_product'=>array(
            'class'  => 'CDbConnection',
            'connectionString' => "mysql:host={$ip};port=3306;dbname=znms_product",
            'emulatePrepare' => true,
            'username' =>$user,
            'password' => $pwd,
            'charset' => 'utf8',
            'tablePrefix' => 'z_',
        ),
	),
);